<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        function myclass(username,password){
             this.username=username;
             this.password=password;
        }
        var mc = new myclass("gxa","123456");
        console.log(mc.username);
        console.log(mc.password);
        for (const mcKey in mc) {
            console.log(mcKey+"="+mc[mcKey]);
        }
    </script>
</head>
<body>
<button>按钮</button>
</body>
</html>